<template>
    <div id="brand">
        <searchcomponent :goodsList="listcontent" title="热门类目:"></searchcomponent>
    </div>
</template>
<script>
import searchcomponent from "./searchcomponent";
export default {
    data() {
        return {
            listcontent: []
        }
    },
    components: {
        searchcomponent
    },
    created() {
        this.$http.get("http://localhost:3000/api/searchview")
        .then(response => {
            this.listcontent=response.data.Data.HotCategroys;
        })
        .catch(err => {
            console.log(err);
        })
    }
}
</script>
<style lang="scss" scoped>
</style>
